/**
 * @Author：ming
 * @Date：2023/9/27 12:57 AM
 * @Filename：Lc9
 */

/**
 * @author ming
 */
public class Lc9 {
    public boolean isPalindrome(int x) {
        String s = String.valueOf(x);
        char[] cc = s.toCharArray();
        for (int i = 0; i < cc.length/2; i++) {
            if(cc[i]==cc[cc.length-i]){
                continue;
            }else {
                return false;
            }
        }
        return true;
    }
}
